import sys
from PySide6.QtCore import Qt, QSize
from PySide6.QtGui import QAction, QIcon
from PySide6.QtWidgets import QApplication, QMainWindow, QMenuBar, QMenu, QToolBar, QStatusBar, QCheckBox, QLabel

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()

        self.setWindowTitle("My App")

        label = QLabel("Hello")
        self.setCentralWidget(label)

        toolbar = QToolBar("My main toolbar")
        toolbar.setIconSize(QSize(16, 16))
        toolbar.setToolButtonStyle(Qt.ToolButtonFollowStyle)

        self.addToolBar(toolbar)

        button_action1 = QAction(QIcon("bug.png"), "you button1", self)
        button_action1.setStatusTip("This is your button1")
        button_action1.setCheckable(True)
        button_action1.triggered.connect(self.button_action1_triggered)
        toolbar.addAction(button_action1)

        toolbar.addSeparator()

        button_action2 = QAction(QIcon("bug.png"), "you button2", self)
        button_action2.setStatusTip("This is your button2")
        button_action2.setCheckable(True)
        button_action2.triggered.connect(self.button_action2_triggered)
        toolbar.addAction(button_action2)   

        self.setStatusBar(QStatusBar(self))

        menu = self.menuBar()

        file_menu = menu.addMenu("&File")
        file_menu.addAction(button_action1)
        file_menu.addSeparator()
        file_menu.addAction(button_action2)

    def button_action1_triggered(self, s):
        print("button_action1_triggered:", s)

    def button_action2_triggered(self, s):
        print("button_action2_triggered:", s)

app = QApplication(sys.argv)
window = MainWindow()
window.show()

app.exec()